﻿<%@ Page Language="C#" AutoEventWireup="true" MasterPageFile="~/Master/HomeMaster.master"
    CodeBehind="List.aspx.cs" Inherits="CSP.Web.MyHome.ConsumeOrder.List" %>

<asp:Content ID="CSPHead" runat="server" ContentPlaceHolderID="CSPHead">
    <meta charset="utf-8">
    <title>我的合作订单</title>
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta name="description" content="">
    <meta name="author" content="">
</asp:Content>
<asp:Content ID="CSPStyleAndScript" runat="server" ContentPlaceHolderID="CSPStyleAndScript">
    <script src="/Scripts/UI/Expand/dialog.js" type="text/javascript"></script>
    <script type="text/javascript">
        function CancelOrder(orderNumber) {
            DialogMessage.ConfirmShow("提示", "确定要取消此订单？", function () {
                $.ajax({
                    type: "get",
                    dataType: "json",
                    //data: { OrderNumber: ordernumber, ShipmentID:shipmentID, Notes: notes, Action: "CancelShipmentByID" },
                    url: "List.aspx?cancelordernumber=" + orderNumber,
                    async: false,
                    cache: false,
                    error: function (result) {
                        result;
                    },
                    success: function (data, textStatus) {
                        data;
                        //执行成功
                        if (data.status == 1) {
                            DialogMessage.Show(1, data.msg, function () {
                                window.location.href = "List.aspx";
                            });
                        }
                        else if (data.status == 2)//警告
                        {
                            DialogMessage.Show(2, data.msg);
                        }
                        else {
                            DialogMessage.Show(0, data.msg);
                        }
                    }
                });
            });
        }

        function ConfirmOrder(orderNumber) {
            DialogMessage.ConfirmShow("提示", "确定要进行订单最后的预约确认？", function () {
                $.ajax({
                    type: "get",
                    dataType: "json",
                    //data: { OrderNumber: ordernumber, ShipmentID:shipmentID, Notes: notes, Action: "CancelShipmentByID" },
                    url: "List.aspx?confirmordernumber=" + orderNumber,
                    async: false,
                    cache: false,
                    error: function (result) {
                        result;
                    },
                    success: function (data, textStatus) {
                        data;
                        //执行成功
                        if (data.status == 1) {
                            DialogMessage.Show(1, data.msg, function () {
                                window.location.href = "List.aspx";
                            });
                        }
                        else if (data.status == 2)//警告
                        {
                            DialogMessage.Show(2, data.msg);
                        }
                        else {
                            DialogMessage.Show(0, data.msg);
                        }
                    }
                });
            });
        }
    </script>
</asp:Content>
<asp:Content ID="CSPCrumbs" runat="server" ContentPlaceHolderID="CSPCrumbs">
    <!--面包屑Crumbs-->
    <div class="crumbs">
        <span>您当前所在的位置：</span> <a href="/">首页</a> &gt; <a href="#">产品经理</a> &gt; <span>我的产品</span>
    </div>
</asp:Content>
<asp:Content ID="CSPRight" runat="server" ContentPlaceHolderID="CSPRight">
    <div class="pr10">
        <div class="tabs tabs-home mt10">
            <div class="tabs-nd">
                <ul class="tabs-hd">
                    <li class="trigger current">我的合作订单</li>
                </ul>
            </div>
            <div class="tabs-bd order">
                <div class="tabs-panel">
                    <div class="thead mt10">
                        <asp:DropDownList ID="S_OrderTimeRegion" runat="server" AutoPostBack="true" OnSelectedIndexChanged="S_OrderTimeRegion_SelectedIndexChanged">
                            <asp:ListItem Value="0" Text="一个月内的产品"></asp:ListItem>
                            <asp:ListItem Value="1" Text="三个月内的产品"></asp:ListItem>
                            <asp:ListItem Value="2" Text="一年内的产品"></asp:ListItem>
                        </asp:DropDownList>
                        <asp:DropDownList ID="S_OrderStatus" runat="server" AutoPostBack="true" OnSelectedIndexChanged="S_OrderStatus_SelectedIndexChanged">
                        </asp:DropDownList>
                        <span class="order-search fr">
                            <input id="Txt_SearchValue" runat="server" type="text" class="text" placeholder="输入合作标题/合作编号/服务者名称">
                            <input type="submit" runat="server" onserverclick="Btn_Search_Click" class="submit" value="查询">
                        </span>
                    </div>
                    <!--thead-->
                    <asp:Repeater ID="R_ConsumeOrder" ViewStateMode="Disabled" runat="server">
           
                    </asp:Repeater>

                     <div class="pr10 home   ">
        <div class="tabs tabs-home mt10">
            <div class="tabs-nd">
                <ul class="tabs-hd">
                    <li class="trigger current">资质认证</li>
                </ul>
                <div class="tabs-act">
                    <a href="#" class="fc-blue">为什么要认证？</a></div>
            </div>
            <div class="tabs-bd">
                <div class="tabs-panel">
                    <table width="80%" border="0" cellspacing="0" cellpadding="0">
                        <tr>
                            <td width="12%" align="right">
                                &nbsp;
                            </td>
                            <td width="17%" height="40" align="right">
                                &nbsp;
                            </td>
                            <td width="71%">
                                &nbsp;
                            </td>
                        </tr>
                        <tr>
                            <td align="right">
                                &nbsp;
                            </td>
                            <td height="40" align="right">
                                <span class="fc-red">*</span> 机构/个人名称：
                            </td>
                            <td>
                                <input type="text" class="{required: true,maxlength:25} input200" runat="server" name="TxtName"
                                    id="TxtName">
                            </td>
                        </tr>
                        <tr>
                            <td align="right">
                                &nbsp;
                            </td>
                            <td height="40" align="right">
                                <span class="fc-red">*</span> 电话：
                            </td>
                            <td>
                                <input type="text" class="{maxlength:25} input200" runat="server" 
                                    id="TxtPhone">
                            </td>
                        </tr>
                                <tr>
                            <td align="right">
                                &nbsp;
                            </td>
                            <td height="40" align="right">
                                <span class="fc-red">*</span> 手机：
                            </td>
                            <td>
                                <input type="text" class="{maxlength:25} input200" runat="server"  
                                    id="TxtMobile">
                            </td>
                        </tr>
                        <tr>
                            <td align="right">
                                &nbsp;
                            </td>
                            <td height="40" align="right">
                                <span class="fc-red">*</span> 地址：
                            </td>
                            <td >
                                <input type="text" class="{maxlength:100} input200" runat="server" name="TxtAddress"
                                    id="TxtAddress">
                            </td>
                        </tr>
                        <tr>
                            <td align="right">
                                &nbsp;
                            </td>
                            <td height="80" align="right" valign="top">
                                备注：
                            </td>
                            <td valign="top">
                                <textarea name="TxtRemark" class="input300 {maxlength:250} " runat="server" id="TxtRemark" cols="45" rows="5"></textarea>
                            </td>
                        </tr>
                        <tr>
                            <td align="right">
                                &nbsp;
                            </td>
                            <td height="80" align="right">
                                &nbsp;
                            </td>
                            <td>
                                <input class="ui-btn-confirm" type="submit" onserverclick="BtnSubmit_Click" id="BtnSubmit"
                                    value="保存" runat="server" onclick="return BtnSubmit_onclick()" />
                            </td>
                        </tr>
                        <tr>
                            <td align="right">
                                &nbsp;
                            </td>
                            <td height="20" colspan="2" align="left">
                                &nbsp;
                            </td>
                        </tr>
                    </table>
                </div>
                <!--tabs-panel-->
            </div>
            <!--tabs-bd-->
        </div>
        <!--tabs-->
    </div>
                    <div style="text-align:right;display:<%=R_ConsumeOrder.Items.Count == 0 ? "none" : "block"%>" align="right">
                    <!-- {{{ pagination -->
                    <CSP_U:CSPPager ID="U_OrderPager" OnIndexChange="U_OrderPager_IndexChange" runat="server" />
                    <!-- pagination }}} -->
                    </div>
                </div>
                <!--tabs-panel-->
            </div>
            <!--tabs-bd-->
        </div>
        <!--tabs-->
    </div>
</asp:Content>
